package com.zmh.sliderbar;

import android.os.Bundle;
import android.widget.RelativeLayout;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.zmh.sliderbar.myview.MyText3;

public class MainActivity extends AppCompatActivity {

    private MyText3 Mtv3;
    private RelativeLayout rl;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Mtv3=findViewById(R.id.a);
        Mtv3.setOnPageChangeListener(new MyText3.OnPageChangeListener() {
            @Override
            public void onChange(int page) {
                Toast.makeText(MainActivity.this,""+page,Toast.LENGTH_LONG).show();
            }
        });
    }
}